package cn.hsa.xxx.bookData.service.impl;


import cn.hsa.xxx.bookData.bo.BookInventoryBO;
import cn.hsa.xxx.api.dto.BookInventoryDTO;
import cn.hsa.xxx.api.service.BookInventoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookInventoryServiceImpl implements BookInventoryService {

    @Autowired
    private BookInventoryBO bookInventoryBO;

    @Override
    public BookInventoryDTO add(BookInventoryDTO bookInventoryDTO) {
        return bookInventoryBO.add(bookInventoryDTO);
    }

    @Override
    public String delete(String id) {
        return bookInventoryBO.delete(id);
    }

    @Override
    public BookInventoryDTO get(String id) {
        return bookInventoryBO.get(id);
    }

    @Override
    public String update(BookInventoryDTO bookInventoryDTO) {
        return bookInventoryBO.update(bookInventoryDTO);
    }

    @Override
    public List<BookInventoryDTO> getPage(int pageNo, int pageSize) {
        return bookInventoryBO.getPage(pageNo,pageSize);
    }
}
